<template>
    <div id="app">
        <progress-loading/>
        <v-header></v-header>
        <div id="content">
            <router-view v-if="isRouterAlive"></router-view>
        </div>
    </div>
</template>

<script>
import vHeader from "@/components/common/Header";
import ProgressLoading from "@/components/common/ProgressLoading";

export default {
    name: "App",
    components: {
        ProgressLoading,
        vHeader,
    },
    provide(){
        return {
            reload: this.reload
        };
    },
    data() {
        return {
            isRouterAlive: true
        };
    },
    methods: {
        reload(){
            this.isRouterAlive = false;
            this.$nextTick(() =>{
                this.isRouterAlive = true;
            });
        }
    }
};
</script>

<style lang="scss">
@import "./assets/css/main.scss"; //引入主要预置样式的修改
</style>
